package cn.zcy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import cn.zcy.service.*;
import cn.zcy.pojo.*;
@Controller
public class EmpController {

    @Autowired
    private IEmpService empService;

    @RequestMapping("test")
    public String helle() {
        List<Emp> empList = empService.selectAll();
        System.out.println(empList);
        return "forward:/index.jsp";
    }
}
